/**
 * @file jsEncrypt封装
 * @author: zhouqin
 * @date: 2021-06-21
 * @last Modified by: zhouqin
 * @last Modified time: 2021-06-21
 */
// 密码加密处理
import JSEncrypt from 'jsencrypt';
const _JSEncrypt = password => {
    // 公钥
    const pubKey =
        'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCAnYc0_o-VMqfOsbYfuqhLfitwoUbiin-9yfjamdhqlcR1o1zH0GT7YLMRcNalkASW-nMIbEt9ZsjuhMJLm__b6Y9M4JtE7lDJv8z05dP4-PzrI5N9oRzlP7pSWjYVmNStFcS88_qigiPPRmbZkY0s9cySVZF1jjh7RlLVykPbQwIDAQAB';
    const encrypt = new JSEncrypt({});
    encrypt.setPublicKey(pubKey);
    const result = encrypt.encrypt(password.toString());
    return result;
};
export default {
    install(Vue) {
        Vue.prototype.$generateRsaCode = _JSEncrypt;
    }
};
